package com.lee.bgTask.entity;

public interface TaskEntity {

    /**
     * 执行具体任务回调
     */
    void onExcute();

    /**
     * 路由到指定队列路由规则
     *
     * @return
     */
    int queueHash();

    enum Status {
        UNSTART, PROCESSING, FINSHED, CANCEL;
    }

    enum FailedStrategy {
        NOTHING, RETRRY, REEPUSH;
    }

}
